// JavaScript Document
(function(){
    $.extend($.fn,{
        color:function(options){
            var options = $.extend({}, $.fn.color.defaults,options);
            /*	var options = $.extend({
                    bcolor:"red",
                    fcolor:"yellow"
                },options);*/
            return this.each(function(){
                $(this).css({
                    "color":options.fcolor,
                    "backgroundColor":options.bcolor
                });
                var _html = $(this).html();
                _html = $.fn.color.format(_html);//格式化
                //重写元素内容
                $(this).html(_html);
            });
        }
    });
    $.fn.color.defaults={
        bcolor:"red",
        fcolor:"yellow"
    };
    //开发性功能函数的续写
    $.fn.color.format = function(str){
        return str;
    }
})(jQuery);
